/**
 * @author zj
 * @desc:
 * @date: 2024/8/26 26
 */
import request from "@/request/index.js";

export function getRoleListPage(data) {
  return request({
    url: "/system/api/sysRole/page",
    method: "post",
    data,
  });
}

export function getRoleList(data) {
  return request({
    url: "/system/api/sysRole/list",
    method: "post",
    data,
  });
}
export function getRoleInfoById(id) {
  return request({
    url: "/system/api/sysRole/" + id,
    method: "get",
  });
}

export function roleAdd(data) {
  return request({
    url: "/system/api/sysRole/save",
    method: "post",
    data,
  });
}

export function roleEdit(data) {
  return request({
    url: "/system/api/sysRole/update",
    method: "post",
    data,
  });
}

export function roleDelete(data) {
  return request({
    url: "/system/api/sysRole/delete",
    method: "post",
    data,
  });
}

export function roleChangeShow(data) {
  return request({
    url: "/system/api/sysRole/status",
    method: "post",
    data,
  });
}
